package com.example.houseitemmanagebackend.dto;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
public class ResetPasswordDTO {

    @NotEmpty(message = "邮箱不能为空")
    @Email(message = "邮箱格式不正确")
    private String email;

    @NotEmpty(message = "验证码不能为空")
    @Length(min = 6, max = 6, message = "验证码必须为6位")
    private String captcha;

    @NotEmpty(message = "新密码不能为空")
    @Length(min = 6, message = "密码长度不能少于6位")
    private String newPassword;
}